package com.hzw.saas.common.flow.pojo.bo;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hzw.saas.common.util.constants.PatternConsts;
import org.springframework.format.annotation.DateTimeFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author EZ09
 * @since 08/10/2021
 */
@Data
@ApiModel("流程操作记录")
public class FlowProcessRecordBO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "记录PID")
    private String pid;

    @ApiModelProperty(value = "流程实例ID", position = 1)
    private String flowInstanceId;

    @ApiModelProperty(value = "流程处理ID", position = 1)
    private String flowProcessId;

    @ApiModelProperty(value = "当前流程处理的节点名称", position = 2)
    private String curFlowNodeName;

    @ApiModelProperty(value = "流程处理后的节点名称", position = 3)
    private String tarFlowNodeName;

    @ApiModelProperty(value = "流程处理名称", position = 4)
    private String flowProcessName;

    @ApiModelProperty(value = "流程处理标题", position = 4)
    private String flowProcessTitle;

    @ApiModelProperty(value = "流程处理提示", position = 4)
    private String flowProcessTip;

    @ApiModelProperty(value = "流程处理样式", position = 4)
    private String flowProcessStyle;

    @ApiModelProperty(value = "流程处理步骤序号", position = 5)
    private Integer step;

    @ApiModelProperty(value = "处理人ID", position = 6)
    private String approver;

    @ApiModelProperty(value = "处理人用户名", position = 7)
    private String approverName;

    @ApiModelProperty(value = "处理意见", position = 8)
    private String suggestion;

    @ApiModelProperty(value = "处理时间, pattern: " + PatternConsts.NORM_DATETIME_PATTERN, position = 83)
    @JsonFormat(pattern = PatternConsts.NORM_DATETIME_PATTERN)
    @DateTimeFormat(pattern = PatternConsts.NORM_DATETIME_PATTERN)
    private Date createTime;

}
